package com.tripwego.client.jsni;

import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.maps.client.geom.LatLng;

/**
 * 
 * @author Julien
 * 
 */
public class PlaceDetailsResults extends JavaScriptObject {

	  // Overlay types always have protected, zero-arg ctors
	  protected PlaceDetailsResults() { } 
	    
	  // Typically, methods on overlay types are JSNI
	  public final native String address_components() /*-{ return this.address_components; }-*/;
	  public final native String formatted_address() /*-{ return this.formatted_address; }-*/;
	  public final native String formatted_phone_number() /*-{ return this.formatted_phone_number; }-*/;
	  public final native String geometry() /*-{ return this.geometry; }-*/;
	  public final native String html_attributions() /*-{ return this.html_attributions; }-*/;
	  public final native String icon() /*-{ return this.icon; }-*/;
	  public final native String id() /*-{ return this.id; }-*/;
	  public final native String international_phone_number() /*-{ return this.international_phone_number; }-*/;
	  public final native String name() /*-{ return this.name; }-*/;
	  public final native double rating() /*-{ return this.rating || 0; }-*/;
	  public final native String reference() /*-{ return this.reference; }-*/;
	  public final native String types() /*-{ return this.types; }-*/;
	  public final native String url() /*-{ return this.url; }-*/;
	  public final native String vicinity() /*-{ return this.vicinity; }-*/;
	  public final native String website() /*-{ return this.website; }-*/;
	  
	  public final native LatLng getLocation()  /*-{ return this.geometry.location;  }-*/;
}
